---
title: Pages.BeforeReplaceShapes Event (Visio)
ms.prod: visio
ms.assetid: 3f6dbc31-0583-dd67-0432-335d6df7a50c
ms.date: 06/08/2017
---


# Pages.BeforeReplaceShapes Event (Visio)

Occurs just before a shape-replacement operation.


## Syntax

 _expression_ . **BeforeReplaceShapes**_(replaceShapes)_

 _expression_ A variable that represents a **Pages** object.


### Parameters



|**Name**|**Required/Optional**|**Data type**|**Description**|
|:-----|:-----|:-----|:-----|
|||||
| _replaceShapes_|Required|REPLACESHAPESEVENT|An object whose properties return information about the shape-replacement operation.|

## See also


#### Concepts


[Pages Object](pages-object-visio.md)

